<?php

/* [GLOBAL DATABASE CONFIGURE] */
define('G_DB_DEBUG',1);
define('G_DB_RWSPLIT',0);
define('G_DB_TYPE','mysql');
define('G_DB_CHARSET','utf8');

/* 后台查询专用数据库 */
define('MID_DB_SERVERNAME', '121.43.104.7');
define('MID_DB_PORT', '3306');
//  quanli_shop_standard
define('MID_DB_DATABASE', 'quanli');
define('MID_DB_USER', 'root');
define('MID_DB_PWD', 'Quanli123');

define('G_SERVERNAME', '121.43.104.7');
define('G_PORT', '3306');
define('USENAME', 'root');
define('G_PWD', 'Quanli123');
if (defined('G_DB') && G_DB == 'crm') {
    define('G_DATABASE', 'crm');
} else {
    define('G_DATABASE', 'quanli');
}

	/* [WEBSITE DATABASE-WRITE_CLUSTER CONFIGURE] */
define('G_DB_SERVERNAME',G_SERVERNAME);
define('G_DB_PORT',G_PORT);
define('G_DB_DATABASE',G_DATABASE);
define('G_DB_USER',USENAME);
define('G_DB_PWD',G_PWD);

	/* [WEBSITE DATABASE-READ_CLUSTER CONFIGURE] */
define('G_RODB_SERVERNAME',G_SERVERNAME);
define('G_RODB_PORT',G_PORT);
define('G_RODB_DATABASE',G_DATABASE);
define('G_RODB_USER',USENAME);
define('G_RODB_PWD',G_PWD);


/* [POST SYSTEM DATABASE CONFIGURE] */

	/* [POST SYSTEM DATABASE-WRITE_CLUSTER CONFIGURE] */
define('PG_DB_SERVERNAME',G_SERVERNAME);
define('PG_DB_PORT',G_PORT);
define('PG_DB_DATABASE',G_DATABASE);
define('PG_DB_USER',USENAME);
define('PG_DB_PWD',G_PWD);


	/* [POST SYSTEM DATABASE-READ_CLUSTER CONFIGURE] */
define('PG_RODB_SERVERNAME',G_SERVERNAME);
define('PG_RODB_PORT',G_PORT);
define('PG_RODB_DATABASE',G_DATABASE);
define('PG_RODB_USER',USENAME);
define('PG_RODB_PWD',G_PWD);
